//页面跳转类型的需求按钮的功能实现，与buttonRouter.vue绑定

//功能待完成

import router from "@/router";

export function jump(request){
    switch(request){
        case '预定': 
        case '预约': jumpToReserve(); break;
        case '退房': jumpToCheckOut(); break;
        case '延迟退房': jumpToCheckOutLater(); break;
        case '酒店信息': jumpToAbout(); break;
        default: break;
    }
}

function jumpToReserve(){
    console.log("deal with request for reserve");
    router.push('/reservation');
}

function jumpToCheckOut(){
    console.log("deal with request for check-out");
    router.push('/checkOut')
}

function jumpToCheckOutLater(){
    console.log("deal with request for check-out-later");
    router.push('/checkOutLater');
}

function jumpToAbout(){
    console.log("deal with request for check-out-later");
    router.push('/about');
}